//
//  NEDApp+NED.m
//  NEDAPP_Example
//
//  Created by 98du on 2021/11/22.
//  Copyright © 2021 林宁宁. All rights reserved.
//

#import "NEDApp+NED.h"
#import <objc/runtime.h>

@implementation NEDApp (NED)

@dynamic config;

-(id<UIApplicationDelegate>)appDelegte{
    return [UIApplication sharedApplication].delegate;
}

-(NEDAPPConfig *)config{
    NEDAPPConfig * c = objc_getAssociatedObject(self, @selector(config));
    if(!c){
        c = [NEDAPPConfig new];
        objc_setAssociatedObject(self, @selector(config), c, OBJC_ASSOCIATION_RETAIN);
    }
    return c;
}

@end
